"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const stores_index = require("./stores/index.js");
const stores_userInfo = require("./stores/userInfo.js");
if (!Math) {
  "./pages/crowd/home/index.js";
  "./pages/police/home/index.js";
  "./pages/leader/home/index.js";
  "./pages/index/index.js";
  "./pages/register/register.js";
  "./subPages/crowd/mine/index.js";
  "./subPages/crowd/mine/editPersonalInfo.js";
  "./subPages/crowd/serviceEvaluation/allEvaluation.js";
  "./subPages/crowd/serviceEvaluation/addEvaluation.js";
  "./subPages/crowd/serviceEvaluation/selectUser.js";
  "./subPages/crowd/serviceEvaluation/selectServiceItem.js";
  "./subPages/crowd/workGuide/home.js";
  "./subPages/crowd/workGuide/detail.js";
  "./subPages/crowd/serviceConsultation/addConsultation.js";
  "./subPages/crowd/serviceConsultation/hisConsultation.js";
  "./subPages/crowd/reportComplaint/addComplaint.js";
  "./subPages/crowd/reportComplaint/hisComplaint.js";
  "./subPages/crowd/policeStatus/index.js";
  "./subPages/crowd/news/index.js";
  "./subPages/crowd/news/detail.js";
  "./subPages/crowd/search/index.js";
  "./subPages/crowd/publicAccount/ykb.js";
  "./subPages/police/mine/index.js";
  "./subPages/police/report/fileReport.js";
  "./subPages/police/report/reportInfo.js";
  "./subPages/police/clock/clockRecord.js";
  "./subPages/police/clock/clockInfo.js";
  "./subPages/police/clock/clockTip.js";
  "./subPages/police/onlineAnswer/onlineAnswer.js";
  "./subPages/police/workReminder/workReminder.js";
  "./subPages/police/serviceConsultation/index.js";
  "./subPages/police/mobEvaluation/mobEvaluationTip.js";
  "./subPages/police/mobComplaint/mobComplaintTip.js";
  "./subPages/police/honesty/index.js";
  "./subPages/police/alarmRing/index.js";
  "./subPages/police/publicAccount/jyqf.js";
  "./subPages/police/publicAccount/fzby.js";
  "./subPages/leader/policeStatus/index.js";
  "./subPages/leader/reportComplaint/index.js";
  "./subPages/leader/reportComplaint/detail.js";
  "./subPages/leader/serviceEvaluation/index.js";
  "./subPages/leader/serviceEvaluation/detail.js";
  "./subPages/leader/mine/index.js";
  "./subPages/privacy/index.js";
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "App",
  setup(__props) {
    const userInfoStore = stores_userInfo.useUserInfoStore();
    common_vendor.onLaunch(() => {
      console.log("App Launch");
      if (userInfoStore.token && userInfoStore.openId) {
        toHomePage(userInfoStore.userInfo.userType);
      }
    });
    common_vendor.onShow(() => {
      console.log("App Show");
    });
    common_vendor.onHide(() => {
      console.log("App Hide");
    });
    common_vendor.onLoad(() => {
    });
    const toHomePage = (userType) => {
      console.log("userType------" + userType);
      if (userType == 1) {
        common_vendor.index.redirectTo({
          url: "/pages/crowd/home/index"
        });
      }
      if (userType == 2) {
        common_vendor.index.redirectTo({
          url: "/pages/police/home/index"
        });
      }
      if (userType == 3) {
        common_vendor.index.redirectTo({
          url: "/pages/leader/home/index"
        });
      }
    };
    return () => {
    };
  }
});
const userOfTopLeft = () => "./components/userOfTopLeft/userOfTopLeft.js";
const personalModule = () => "./components/personalModule/personalModule.js";
function createApp() {
  const app = common_vendor.createSSRApp(_sfc_main);
  app.use(stores_index.pinia);
  app.use(common_vendor.uviewPlus);
  app.component("userOfTopLeft", userOfTopLeft);
  app.component("personalModule", personalModule);
  return {
    app
  };
}
createApp().app.mount("#app");
exports.createApp = createApp;
